home *** CD-ROM | disk | FTP | other *** search
- on foes2 myfoe, mycnl
- global ppl, foes, mnv, pwr, psyprop, fxpath
- if (getAt(foes, 1) = myfoe) and (myfoe <> 207) then
- if getAt(foes, 1) = myfoe then
- if the locH of sprite getAt(ppl, 1) < (the locH of sprite getAt(ppl, 2) - 120) then
- set the member of sprite mycnl to member(myfoe + 1)
- setAt(foes, 1, 163)
- setAt(mnv, 2, 12)
- sprite(getAt(ppl, 2)).flipH = 0
- else
- if the locH of sprite getAt(ppl, 1) > (the locH of sprite getAt(ppl, 2) + 120) then
- set the member of sprite mycnl to member(myfoe + 1)
- setAt(foes, 1, 163)
- setAt(mnv, 2, 12)
- sprite(getAt(ppl, 2)).flipH = 1
- else
- if abs(the locV of sprite getAt(ppl, 1) - the locV of sprite getAt(ppl, 2)) < 90 then
- set the member of sprite mycnl to member(175)
- setAt(foes, 1, 175)
- setAt(mnv, 2, 5)
- if the locH of sprite getAt(ppl, 1) > the locH of sprite getAt(ppl, 2) then
- sprite(getAt(ppl, 2)).flipH = 1
- else
- sprite(getAt(ppl, 2)).flipH = 0
- end if
- if getAt(pwr, 1) > 0 then
- if psyprop <> 0 then
- set the keyUpScript to "psyreg"
- set the keyDownScript to "psyregb"
- if random(3) = 1 then
- sound playFile 2, fxpath & random(3) + 286
- else
- sound playFile 1, fxpath & "ene1prp.aif"
- end if
- puppetSprite(31, 1)
- set the loc of sprite 31 to the loc of sprite getAt(ppl, 1) - 160
- set the member of sprite 31 to member("hit" & psyprop, 1)
- psyprop = 0
- go("stage2")
- end if
- if (the keyCode = 49) and (getAt(mnv, 1) > 1) then
- sound playFile 1, fxpath & "enefis.aif"
- else
- g = random(2)
- if g = 1 then
- g = 46
- else
- g = 55
- end if
- set the member of sprite getAt(ppl, 1) to member(g, 2)
- setAt(pwr, 1, getAt(pwr, 1) - 5)
- setAt(mnv, 1, 6)
- sound playFile 1, fxpath & "ene1hit.aif"
- if random(3) = 1 then
- sound playFile 2, fxpath & random(6) + 268
- else
- if random(2) = 1 then
- sound playFile 2, fxpath & random(3) + 289
- end if
- end if
- end if
- else
- sound playFile 1, fxpath & "ene1dead.aif"
- set the member of sprite getAt(ppl, 1) to member(46, 2)
- setAt(mnv, 1, 6)
- setAt(mnv, 1, 9)
- go("dead")
- end if
- else
- if abs(the locV of sprite getAt(ppl, 1) - the locV of sprite getAt(ppl, 2)) > 90 then
- setAt(foes, 1, 163)
- setAt(mnv, 2, 12)
- end if
- end if
- end if
- end if
- end if
- else
- if (getAt(foes, 2) = myfoe) and (myfoe <> 207) then
- if the locH of sprite getAt(ppl, 1) < (the locH of sprite getAt(ppl, 3) - 120) then
- set the member of sprite mycnl to member(myfoe + 1)
- setAt(foes, 2, 163)
- setAt(mnv, 3, 12)
- sprite(getAt(ppl, 3)).flipH = 0
- else
- if the locH of sprite getAt(ppl, 1) > (the locH of sprite getAt(ppl, 3) + 120) then
- set the member of sprite mycnl to member(myfoe + 1)
- setAt(foes, 2, 163)
- setAt(mnv, 3, 12)
- sprite(getAt(ppl, 3)).flipH = 1
- else
- if abs(the locV of sprite getAt(ppl, 1) - the locV of sprite getAt(ppl, 3)) < 90 then
- set the member of sprite mycnl to member(175)
- setAt(foes, 2, 175)
- setAt(mnv, 3, 5)
- if the locH of sprite getAt(ppl, 1) > the locH of sprite getAt(ppl, 3) then
- sprite(getAt(ppl, 3)).flipH = 1
- else
- sprite(getAt(ppl, 3)).flipH = 0
- end if
- if getAt(pwr, 1) > 0 then
- if psyprop <> 0 then
- set the keyUpScript to "psyreg"
- set the keyDownScript to "psyregb"
- puppetSprite(31, 1)
- set the loc of sprite 31 to the loc of sprite getAt(ppl, 1) - 160
- set the member of sprite 31 to member("hit" & psyprop, 1)
- psyprop = 0
- if random(3) = 1 then
- sound playFile 2, fxpath & random(3) + 286
- else
- sound playFile 1, fxpath & "ene1prp.aif"
- end if
- go("stage2")
- end if
- if (the keyCode = 49) and (getAt(mnv, 1) > 1) then
- sound playFile 1, fxpath & "enefis.aif"
- else
- g = random(2)
- if g = 1 then
- g = 46
- else
- g = 55
- end if
- set the member of sprite getAt(ppl, 1) to member(g, 2)
- setAt(pwr, 1, getAt(pwr, 1) - 5)
- setAt(mnv, 1, 6)
- sound playFile 1, fxpath & "ene1hit.aif"
- if random(3) = 1 then
- sound playFile 2, fxpath & random(6) + 268
- else
- if random(2) = 1 then
- sound playFile 2, fxpath & random(3) + 289
- end if
- end if
- end if
- else
- sound playFile 1, fxpath & "ene2dead.aif"
- set the member of sprite getAt(ppl, 1) to member(46, 2)
- setAt(mnv, 1, 6)
- setAt(mnv, 1, 9)
- go("dead")
- end if
- else
- if abs(the locV of sprite getAt(ppl, 1) - the locV of sprite getAt(ppl, 2)) > 90 then
- setAt(foes, 2, 163)
- setAt(mnv, 3, 12)
- end if
- end if
- end if
- end if
- end if
- end if
- end
-